package com.Service.Impl;


import com.Mapper.ShoppingcarMapper;
import com.Service.ShoppingcarService;
import com.entity.shoppingcar;
import com.utils.SqlSessionUtils;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

/**
 * @Author: 冷俊杰
 * @Description: 购物车Service实现类
 * @DateTime: 2022/6/22 11:02
 **/
public class ShoppingcarServiceImpl implements ShoppingcarService {
    SqlSession sqlSession = SqlSessionUtils.getSqlSession();
    ShoppingcarMapper mapper = sqlSession.getMapper(ShoppingcarMapper.class);

    public List<shoppingcar> ListShoppingcar() {
        return mapper.ListShoppingcar();
    }
}
